<script setup lang="ts">
import {
  Document,
  Menu as IconMenu,
  Location,
  Setting,
} from '@element-plus/icons-vue'
const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
</script>

<template>
  <el-menu
      active-text-color="rgb(64,158,255)"
      background-color="#304156"
      class="el-menu-vertical-demo"
      default-active="2"
      text-color="#fff"
      @open="handleOpen"
      @close="handleClose"
  >
    <el-menu-item-group title="考试"></el-menu-item-group>
    <el-menu-item index="1">
      <el-icon><icon-menu /></el-icon>
      <span>试卷管理</span>
    </el-menu-item>
    <el-menu-item index="2">
      <el-icon><icon-menu /></el-icon>
      <span>考试管理</span>
    </el-menu-item>
    <el-menu-item index="3">
      <el-icon><icon-menu /></el-icon>
      <span>批卷中心</span>
    </el-menu-item>
    <el-menu-item index="4">
      <el-icon><icon-menu /></el-icon>
      <span>智能监考</span>
    </el-menu-item>
    <el-menu-item index="5">
      <el-icon><icon-menu /></el-icon>
      <span>申诉管理</span>
    </el-menu-item>
    <el-menu-item index="6">
      <el-icon><icon-menu /></el-icon>
      <span>统计分析</span>
    </el-menu-item>
        <el-sub-menu index="7">
          <template #title>
            <el-icon><location /></el-icon>
            <span>考试配置</span>
          </template>
            <el-menu-item index="1-1">业务类型配置</el-menu-item>
        </el-sub-menu>
    <el-menu-item index="8">
      <el-icon><icon-menu /></el-icon>
      <span>证书管理</span>
    </el-menu-item>
  </el-menu>
</template>

<style scoped>


</style>